package com.jxl.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 广告
 * @author 江雪林
 * @create 2021-03-29
 */
public class Advertising {
    private Integer id;//主键id
    private Integer appId;//appId（来源于：app_info表的主键id)
    private String adPicPath;//广告图片存储路径
    private Integer adPv;//广告点击量
    private Integer carouselPosition;//轮播位（1-n）
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTm;//起效时间;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTm;//失效时间
    private Integer creater;//创建者（来源于dev_user开发者信息表的用户id）
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTm;//创建时间
    private Integer modifyor;//更新者（来源于dev_user开发者信息表的用户id
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date modifyTm;//最新更新时间

    public Advertising() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAppId() {
        return appId;
    }

    public void setAppId(Integer appId) {
        this.appId = appId;
    }

    public String getAdPicPath() {
        return adPicPath;
    }

    public void setAdPicPath(String adPicPath) {
        this.adPicPath = adPicPath;
    }

    public Integer getAdPv() {
        return adPv;
    }

    public void setAdPv(Integer adPv) {
        this.adPv = adPv;
    }

    public Integer getCarouselPosition() {
        return carouselPosition;
    }

    public void setCarouselPosition(Integer carouselPosition) {
        this.carouselPosition = carouselPosition;
    }

    public Date getStartTm() {
        return startTm;
    }

    public void setStartTm(Date startTm) {
        this.startTm = startTm;
    }

    public Date getEndTm() {
        return endTm;
    }

    public void setEndTm(Date endTm) {
        this.endTm = endTm;
    }

    public Integer getCreater() {
        return creater;
    }

    public void setCreater(Integer creater) {
        this.creater = creater;
    }

    public Date getCreateTm() {
        return createTm;
    }

    public void setCreateTm(Date createTm) {
        this.createTm = createTm;
    }

    public Integer getModifyor() {
        return modifyor;
    }

    public void setModifyor(Integer modifyor) {
        this.modifyor = modifyor;
    }

    public Date getModifyTm() {
        return modifyTm;
    }

    public void setModifyTm(Date modifyTm) {
        this.modifyTm = modifyTm;
    }

    @Override
    public String toString() {
        return "Advertising{" +
                "id=" + id +
                ", appId=" + appId +
                ", adPicPath='" + adPicPath + '\'' +
                ", adPv=" + adPv +
                ", carouselPosition=" + carouselPosition +
                ", startTm=" + startTm +
                ", endTm=" + endTm +
                ", creater=" + creater +
                ", createTm=" + createTm +
                ", modifyor=" + modifyor +
                ", modifyTm=" + modifyTm +
                '}';
    }
}
